define(['view'], function(View) {
  return View.extend({

    initialize: function(options) {
      View.prototype.initialize.call(this,options);
    },

    //重载路由
    route: function(path, query) {
      var _this = this;

      if(!path) path = this.mainModule;
      Pure.loadView(path, null, function(view) {
        if(view) {
          view.init();
          view.show();
          this.$('[pure-content]').html(view.el);
        }
      });
    }

  });
});